﻿ <!--题目-->
    <div class="content panel-group" id="accordion2" style="width:1200px;margin-left:auto;margin-right:auto;margin-bottom:200px">
        <div class="subject" ng-repeat="item in topicList" ng-init="outindex=$index">
            <div style="position:absolute;right:0;top:0">
                <a ng-if="item.results!=item.myanswer" class="fa fa-close fa-2x" style="color:#ff0000;margin-left:20px"></a>
                <a ng-if="item.results==item.myanswer" class="fa fa-check fa-2x" style="color:#59c4a2;margin-left:20px"></a>
            </div>
            <h6 style="line-height:2;margin-right:56px"><span>题{{$index+1}}</span>{{item.exercises_name}}</h6>
            <ul>
                <li style="margin-right:56px" ng-repeat="x in item.xt_exercises_select"><span>{{x.name}}</span>{{x.namestr}}</li>
            </ul>
            <div class="myanswer">
                <span>【我的答案】</span>
                <i ng-if="item.results!=item.myanswer">{{item.myanswer}}</i>
                <i ng-if="item.results==item.myanswer" style="background-color:#59c4a2">{{item.myanswer}}</i>
                
            </div>
            <div class="reason" ng-if="item.results!=item.myanswer">
                <ul>
                    <li ng-repeat="x in item.xt_exercises_reason"><a href="" ng-class="{active:x.ischosen==true}" ng-click="reasonChosen(outindex,$index)">{{x.reason_text}}</a></li>
                    <li>错在哪：<input type="text" ng-model="item.reason_text" ng-blur="set_reason_text(outindex)"/></li>
                </ul>
            </div>
            <div class="panel panel-default answer">
                <div class="panel-heading chapter">
                    <h4 class="panel-title">
                        <a data-toggle="collapse" data-parent="#accordion2" href="\#collapse{{$index}}">
                            <i>正确答案&解析</i>
                            <span class="glyphicon glyphicon-chevron-down" style="left:620px"></span>
                        </a>
                    </h4>
                </div>
                <div id="collapse{{$index}}" class="panel-collapse collapse">
                    <div class="panel-body">
                        <p>正确答案：<span>{{item.results}}</span></p>
                        <p>解析：</p>
                        <p>{{item.exercisesanalysis}}</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--end 题目-->